home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / write < prev    next >
Text File  |  2001-04-06  |  1KB  |  37 lines

  1. SYNOPSIS
  2.         void write(mixed msg)
  3.  
  4. DESCRIPTION
  5.         Write out something to the current user. What exactly will
  6.         be printed in the end depends of the type of msg.
  7.         
  8.         If it is a string or a number then just prints it out.
  9.         
  10.         If it is an object then the object will be printed in the
  11.         form: "OBJ("+object_name((object)mix)+")"
  12.         
  13.         If it is an array just "<ARRAY>" will be printed.
  14.         If it is a mapping just "<MAPPING>" will be printed.
  15.         If it is a closure just "<CLOSURE>" will be printed.
  16.         
  17.         If the write() function is invoked by a command of an living
  18.         but not interactive object and the given argument is a string
  19.         then the lfun catch_tell() of the living will be invoked with
  20.         the message as argument.
  21.  
  22. EXAMPLES
  23.         write("Hello world!\n");
  24.         
  25.         Just print out a string.
  26.         
  27.         write(this_player());
  28.         
  29.         This will print out something like "OBJ(std/player#1234)".
  30.         
  31.         write( ({ "blub" }) );
  32.         
  33.         Will print out "<ARRAY>".
  34.         
  35. SEE ALSO
  36.         say(E), tell_object(E), tell_room(E), catch_tell(A)
  37.